﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DevToolBox.Cloud.Common
{
    /// <summary>
    /// Method to abstract the interaction with third 
    /// party/cloud based Caching services
    /// </summary>
    public interface ICacheable
    {
        /// <summary>
        /// Method to add an item to the Cache
        /// </summary>
        /// <param name="key">Item key</param>
        /// <param name="value">Item Value</param>
        void Set(string key, object value);

        /// <summary>
        /// Method to get an item from the Cache
        /// </summary>
        /// <param name="key">Item key</param>
        /// <returns>Item Value</returns>
        object Get(string key);
    }
}
